<div id="syslog_tb">
    <a href="#" onclick="add()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
    <a href="#" onclick="edit()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
    <a href="#" onclick="del()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
</div>
<table id="syslog_dg"></table>
<#include "/WEB-INF/views/include/common.ftl"/>
<script>
    var company_fg;
    $(function () {
        company_fg = $('#syslog_dg');
        company_fg.datagrid({
            url: '${ctx}/sys/sysLogList',
            fitColumns: true,
            pagination: true,
            rownumbers: true,
            pageSize: 10,
            pageList: [10, 20, 30],
            idField: 'log_id',
            columns: [
                [{
                    field: 'log_id',
                    width: 100,
                    hidden: true,
                    title: 'id'
                }, {
                    field: 'user_agent',
                    title: '浏览器',
                    width: 100
                }, {
                    field: 'remote_addr',
                    title: 'remote_addr',
                    width: 100
                }, {
                    field: 'host',
                    title: 'host',
                    width: 100
                }, {
                    field: 'method',
                    title: 'method',
                    width: 100
                }, {
                    field: 'params',
                    title: 'params',
                    width: 100
                }, {
                    field: 'uri',
                    title: 'uri',
                    width: 100
                }, {
                    field: 'createTime',
                    title: 'createTime',
                    width: 100
                }
                ]
            ],
            toolbar: '#syslog_tb'
        });
    })

    <!--添加方法-->
    function add() {
        parent.$.modalDialog.openner = company_fg;
        parent.$.modalDialog({
            title: "添加公司",
            width: 300,
            height: 300,
            href: "addCompanyUI.html"
        });
    }
</script>